#!/bin/bash
source ~/command/common

if [ "$1" = "--help" -o  "$1" = "-h" ];then
  echo ./install
  exit
fi
if __windows;then
  if __cygwin;then
      DIST=$USERPROFILE/AppData/Roaming/Code/User/
  else
      DIST=$HOME/AppData/Roaming/Code/User/
  fi
else
  DIST=$HOME/.code/
fi

cp ./config/*.json $DIST
cp ./snippets/* $DIST/snippets/

echo "done"
